package com.dhcc.bpm.modules.alarm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dhcc.bpm.modules.alarm.entity.Alarm;
import com.dhcc.bpm.modules.alarm.vo.AlarmVO;
import org.springblade.core.mp.base.BaseService;

import java.util.List;
import java.util.Map;

/**
 * @ClassName IAlarmService
 * @Description 告警表 服务类
 * @Author sjm
 * @Date 2020/2/21 0021 15:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 **/
public interface IAlarmService extends BaseService<Alarm> {

	/**
	 * @Description 自定义分页查询
	 * @Author xiafayu
	 * @Date 2020/2/24 17:28
	 * @param page
	 * @param alarm
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dhcc.bpm.modules.alarm.vo.AlarmVO>
	 **/
	IPage<AlarmVO> selectAlarmPage(IPage<AlarmVO> page, AlarmVO alarm);

	/**
	 * @Description 查询
	 * @Author xiafayu
	 * @Date 2020/2/24 17:28
	 * @param map
	 * @return java.util.List<com.dhcc.bpm.modules.alarm.entity.Alarm>
	 **/
	List<Alarm> selectByIds (Map<String,Object> map);

	/**
	 * @Description 查询
	 * @Author xiafayu
	 * @Date 2020/2/24 17:28
	 * @param map
	 * @return java.util.List<com.dhcc.bpm.modules.alarm.entity.Alarm>
	 **/
	List<Alarm> selectByPrdtIds (Map<String,Object> map);

	/**
	 * @Author wangjinghan
	 * @Description 刷新路由
	 * @param:
	 * @return:
	 * @date: 2020/4/24 16:02
	 */
	public int  updateRefreshFlag(Alarm alarm);
}
